home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap12 / LivePalette / LivePalette.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  759 b   |  35 lines

  1. //***********************************************************************
  2. //
  3. //  LivePalette.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMainWindow : public CFrameWnd
  14. {
  15. private:
  16.     CPalette m_palette;
  17.  
  18.     void DoBkgndFill (CDC*, CRect*);
  19.     void DoDrawText (CDC*, CRect*);
  20.  
  21. public:
  22.     CMainWindow ();
  23.  
  24. protected:
  25.     afx_msg int OnCreate (LPCREATESTRUCT);
  26.     afx_msg BOOL OnEraseBkgnd (CDC*);
  27.     afx_msg void OnPaint ();
  28.     afx_msg void OnTimer (UINT);
  29.     afx_msg BOOL OnQueryNewPalette ();
  30.     afx_msg void OnPaletteChanged (CWnd*);
  31.     afx_msg void OnDestroy ();
  32.  
  33.     DECLARE_MESSAGE_MAP ()
  34. };
  35.